package views;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Spinner;
import org.eclipse.swt.widgets.Text;

public class TeremKarbantartasView extends Composite {
	private Text txtFelszereltseg;
	private Text txtRendezes;
	private Text txtTeremnev;
	private Text txtFelelos;
	private Combo cmbRendeltetes;
	private Button cbkMegerosites;
	private Button btnMentes;
	private Button btnMegse;
	private Spinner spnAlapar;

	public TeremKarbantartasView(Composite arg0, int arg1) {
		super(arg0, arg1);
		setLayout(new GridLayout(2, false));

		Label lblTeremnev = new Label(this, SWT.NONE);
		lblTeremnev.setText("Teremn\u00E9v: ");

		txtTeremnev = new Text(this, SWT.BORDER);
		txtTeremnev.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,
				false, 1, 1));

		Label lblRendeltetes = new Label(this, SWT.NONE);
		lblRendeltetes.setText("Rendeltet\u00E9s:");

		cmbRendeltetes = new Combo(this, SWT.NONE);
		cmbRendeltetes.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,
				false, 1, 1));

		Label lblFelszereltseg = new Label(this, SWT.NONE);
		lblFelszereltseg.setText("Fix felszerelts\u00E9g:");

		txtFelszereltseg = new Text(this, SWT.BORDER | SWT.MULTI);
		txtFelszereltseg.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,
				false, 1, 1));

		Label lblRendezes = new Label(this, SWT.NONE);
		lblRendezes.setText("Rendez\u00E9s:");

		txtRendezes = new Text(this, SWT.BORDER);
		txtRendezes.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,
				false, 1, 1));

		Label lblAlapar = new Label(this, SWT.NONE);
		lblAlapar.setText("Alap\u00E1r: ");

		spnAlapar = new Spinner(this, SWT.BORDER);
		spnAlapar.setMaximum(10000);

		Label lblFelels = new Label(this, SWT.NONE);
		lblFelels.setText("Felel\u0151s:");

		txtFelelos = new Text(this, SWT.BORDER);
		txtFelelos.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,
				false, 1, 1));

		Label lblMegerosites = new Label(this, SWT.NONE);
		lblMegerosites.setText("Meger\u0151s\u00EDt\u00E9s:");

		cbkMegerosites = new Button(this, SWT.CHECK);
		cbkMegerosites.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER,
				false, false, 1, 1));

		btnMentes = new Button(this, SWT.NONE);
		btnMentes.setText("Ment\u00E9s");

		btnMegse = new Button(this, SWT.NONE);
		btnMegse.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false,
				false, 1, 1));
		btnMegse.setText("M\u00E9gse");

	}

	public Text getText() {
		return txtFelszereltseg;
	}

	public Text getTxtRendezes() {
		return txtRendezes;
	}

	public Text getTxtTeremnev() {
		return txtTeremnev;
	}

	public Text getTxtFelelos() {
		return txtFelelos;
	}

	public Combo getCmbRendeltetes() {
		return cmbRendeltetes;
	}

	public void setCmbRendeltetes(Combo cmbRendeltetes) {
		this.cmbRendeltetes = cmbRendeltetes;
	}

	public Button getCbkMegerosites() {
		return cbkMegerosites;
	}

	public void setCbkMegerosites(Button cbkMegerosites) {
		this.cbkMegerosites = cbkMegerosites;
	}

	public Text getTxtFelszereltseg() {
		return txtFelszereltseg;
	}

	public Button getBtnMentes() {
		return btnMentes;
	}

	public Button getBtnMegse() {
		return btnMegse;
	}

	public Spinner getSpnAlapar() {
		return spnAlapar;
	}

}
